/*
 * @Author: linxun 
 * @Date: 2021-03-05 12:10:00 
 * @Last Modified by: linxun
 * @Last Modified time: 2021-03-20 11:43:54
 * @Description: 数据集（版本）详情
 */

import React from 'react';
import { Modal, Button } from 'antd';
import DetailComponent from './Detail';

const Detail = props => {
  const { title, cancel, visible, detail, loading, hideVersion, ...others } = props;

  return (
    <Modal
      title={title}
      visible={visible}
      destroyOnClose
      onCancel={cancel}
      maskClosable={false}
      width='80%'
      style={{ maxWidth: 1200 }}
      footer={<Button type='primary' onClick={cancel}>关闭</Button>}
    >
      <DetailComponent loading={loading} detail={detail} hideVersion={hideVersion} {...others} />
    </Modal>
  )
}

export default Detail;